import { Context, Schema } from 'koishi'

export const name = 'no-sb-sanjiaozhou'

export interface Config {}

export const Config: Schema<Config> = Schema.object({})

export function apply(ctx: Context) {
  // write your plugin here

  ctx.middleware(async ( session, next ) => {

    if ( session.content.includes("三角洲周年庆") ){
      ctx.logger.info("检测到傻逼三角洲");
      await session.bot.deleteMessage(session.channelId, session.messageId);
    } else {
      return next();
    }

  }, true);

}
